package com.yunda.nebula.gateway.listener;

import org.springframework.context.event.EventListener;
import org.springframework.scheduling.annotation.Async;

/**
 * @author zhiguo.dong
 * @date 2020/9/24
 */
public interface DataChangeListener {

    @EventListener(classes = ConfigCreateEvent.class)
    @Async
    void onCreate(Object event);

    @Async
    @EventListener(classes = ConfigUpdateEvent.class)
    void onUpdate(Object event);

    @Async
    @EventListener(classes = ConfigDeleteEvent.class)
    void onDelete(Object event);


}
